package com.example.androidmainshixun.view;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import androidx.appcompat.app.AppCompatActivity;

import com.example.androidmainshixun.R;

public class Goods4Activity extends AppCompatActivity {
    private ImageView mImage;

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_goods4);
        mImage=findViewById(R.id.image1);
        // 从Intent中获取传递过来的数据
        int position = getIntent().getIntExtra("POSITION", -1); // 获取位置

        mImage.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                onBackPressed();
            }
        });
    }
}
